﻿namespace Infrastructure.CrossCutting.Messages
{
    public class BoolMessage
    {
        public static readonly BoolMessage True = new BoolMessage(true, string.Empty);

        public static readonly BoolMessage False = new BoolMessage(false, string.Empty);

        public BoolMessage(bool success, string message)
        {
            Success = success;
            Message = message;
        }

        public string Message { get; protected set; }

        public bool Success { get; private set; }

        public BoolMessage SetMessage(string message)
        {
            Message = message;
            return this;
        }
    }
}
